﻿using UnityEngine;
using System.Collections;

public class CloudCollector : MonoBehaviour
{
    void OnTriggerEnter2D(Collider2D other)
    {
        if (other.gameObject.tag == "cloud" || other.gameObject.tag == "darkCloud")
        {
            other.gameObject.SetActive(false);
        }
    }

    // Use this for initialization
    void Start()
    {
	
    }
	
    // Update is called once per frame
    void Update()
    {
	
    }
}
